package com.supermarket.manage.common.dto.ucenter.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * 用户登录对象
 *
 * @author Faxon
 * @version 1.0
 * @date 2020-02-17 17:38
 **/
@Data
@ApiModel("LoginParams:用户名密码 登录对象")
public class LoginParams implements Serializable {

    private static final long serialVersionUID = -2437347720898771055L;

    /**
     * 用户名
     */
    @ApiModelProperty(value = "用户名")
    @NotBlank(message = "用户名不能为空")
    private String username;

    /**
     * 密码
     */
    @ApiModelProperty(value = "密码")
    @NotBlank(message = "密码不能为空")
    private String password;
}
